#include "queue.h"

int main(void)
{
     Queue queue;
     Init(&queue);
     for (int i = 1; i <= 10; i++)
          EnQueue(&queue, i);
     Show(&queue);

     DeQueue(&queue);   //出队测试
     DeQueue(&queue);   //出队测试
     DeQueue(&queue);   //出队测试
     DeQueue(&queue);   //出队测试
     DeQueue(&queue);   //出队测试
     Show(&queue);

     EnQueue(&queue, 11);  //入队测试
     EnQueue(&queue, 11);  //入队测试
     EnQueue(&queue, 11);  //入队测试
     EnQueue(&queue, 11);  //入队测试
     EnQueue(&queue, 11);  //入队测试
     int len = Length(&queue);
     printf("len = %d\n",len);
     Show(&queue);

#if 0
     int value;
     GetHead(&queue,&value);
     printf("value = %d\n",value);
     value = Length(&queue);
     printf("value = %d\n",value);
     Destory(&queue);
#endif

     return 0;
}
